package 线程安全问题.死锁.Test01;

public class DeadLockTest01 {
    public static void main(String[] args) {
        Object o1 = new Object();
        Object o2 = new Object();
        Thread t1 = new Thread(new MyRunnable01(o1,o2));
        Thread t2 = new Thread(new MyRunnable02(o1,o2));
        t1.setName("t1");
        t2.setName("t2");
        t1.start();
        t2.start();

    }
}
